<?php
header("content-type:text/html;charset=utf-8");
class config {
    //数据库配置
    public $database = [
        "server" => "127.0.0.1",
        "username" => "root",
        "password" => "root",
        "db_name" => "finamcial",
        "port" => 3306,
        "charset"=> "utf8"
    ];
    //上传文件配置
    public $file = [
        "allow_type" => ['jpeg','png', 'jpg', 'webp','gif'],
        "size" => 2097152,
        "path" => "/images",
    ];
}
$config = new config();